gdk window: Remove an unneeded variable
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Sep 2015 17:14:01 +0000 (13:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 6 Sep 2015 21:11:33 +0000 (17:11 -0400)
The G_DEFINE_TYPE macros automate the parent_class handling.

gdk/gdkwindow.c

index d731f50a14d91ff01ce1489b993771cb971fc5fd..ab37cafcffaf8f64984ff6a600b8c9f466f0c0f5 100644 (file)
@@ -196,7 +196,6 @@ static void draw_ugly_color (GdkWindow       *window,
 
 static guint signals[LAST_SIGNAL] = { 0 };
 
-static gpointer parent_class = NULL;
 
 G_DEFINE_ABSTRACT_TYPE (GdkWindow, gdk_window, G_TYPE_OBJECT)
 
@@ -291,8 +290,6 @@ gdk_window_class_init (GdkWindowClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
 
-  parent_class = g_type_class_peek_parent (klass);
-
   object_class->finalize = gdk_window_finalize;
   object_class->set_property = gdk_window_set_property;
   object_class->get_property = gdk_window_get_property;
@@ -510,7 +507,7 @@ gdk_window_finalize (GObject *object)
   if (window->devices_inside)
     g_list_free (window->devices_inside);
 
-  G_OBJECT_CLASS (parent_class)->finalize (object);
+  G_OBJECT_CLASS (gdk_window_parent_class)->finalize (object);
 }
 
 static void